#include <iostream>
#include <opencv2/opencv.hpp>
#include "GxCamera/GxCamera.h"

using namespace cv;
using namespace std;

int main()
{
    GxCamera camera;
    camera.initLib();
    camera.OpenDevice();
    camera.setRoiParam(640, 480, 80, 120);
    //camera.setWidthHeightParam(640, 480);
    //   ExposureGain            autoExposure  autoGain  ExposureTime  AutoExposureMin  AutoExposureMax  Gain(<=16)  AutoGainMin  AutoGainMax  GrayValue
    camera.setExposureGainParam(    true,     false,      2000,          1000,              3000,         12,         5,            16,        127);
    //   WhiteBalance             Applied?       light source type
    camera.setWhiteBalanceParam(    true,    GX_AWB_LAMP_HOUSE_ADAPTIVE);
    //   Acquisition Start!
    camera.AcquisitionStart();

    return 0;
}
